Make gtk_printer_list_papers public. Bug #345587.
authorChristian Persch <chpe@cvs.gnome.org>
Sun, 24 Dec 2006 13:16:05 +0000 (13:16 +0000)
committerChristian Persch <chpe@src.gnome.org>
Sun, 24 Dec 2006 13:16:05 +0000 (13:16 +0000)
2006-12-24  Christian Persch  <chpe@cvs.gnome.org>

* docs/reference/gtk/gtk-sections.txt:
* gtk/gtk.symbols:
* gtk/gtkpagesetupunixdialog.c: (fill_paper_sizes_from_printer):
* gtk/gtkprinter-private.h:
* gtk/gtkprinter.c: (gtk_printer_list_papers):
* gtk/gtkprinter.h: Make gtk_printer_list_papers public. Bug #345587.

ChangeLog
docs/reference/gtk/gtk-sections.txt
gtk/gtk.symbols
gtk/gtkpagesetupunixdialog.c
gtk/gtkprinter-private.h
gtk/gtkprinter.c
gtk/gtkprinter.h

index d99a2ebb7d7057b49d3234258f15b2aeddbf9f1e..318562a895178cffb71c11adaa745fa853c2f7e8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2006-12-24  Christian Persch  <chpe@cvs.gnome.org>
+
+       * docs/reference/gtk/gtk-sections.txt:
+       * gtk/gtk.symbols:
+       * gtk/gtkpagesetupunixdialog.c: (fill_paper_sizes_from_printer):
+       * gtk/gtkprinter-private.h:
+       * gtk/gtkprinter.c: (gtk_printer_list_papers):
+       * gtk/gtkprinter.h: Make gtk_printer_list_papers public. Bug #345587.
+
 2006-12-24  Carlos Garcia Campos  <carlosgc@gnome.org>
 
        * gtk/gtkpagesetupunixdialog.c: Don't ignore reverse portrait option
index 865cfb0ac5373392ae1e6ab5d5e061ee96095ea4..8b58ed4a421ba840bf748d8c57f074401e0ed5a5 100644 (file)
@@ -6210,6 +6210,7 @@ gtk_printer_is_virtual
 gtk_printer_is_default
 gtk_printer_accepts_ps
 gtk_printer_accepts_pdf
+gtk_printer_list_papers
 gtk_printer_compare
 GtkPrinterFunc
 gtk_enumerate_printers
index 939370a65d919f4fd01621ebbb288c0e6b09b292..7124cf14d0387d8e5a971759ff6c76e525c5166f 100644 (file)
@@ -2610,6 +2610,7 @@ gtk_printer_get_location
 gtk_printer_get_icon_name
 gtk_printer_get_job_count
 gtk_printer_is_virtual
+gtk_printer_list_papers
 gtk_printer_accepts_pdf
 gtk_printer_accepts_ps
 gtk_printer_compare
index 81c9af152c1924f9de089df1c32600bac1ae3deb..df1a936e98bf872f0bd5c543458579cd900ff4ad 100644 (file)
@@ -723,7 +723,7 @@ fill_paper_sizes_from_printer (GtkPageSetupUnixDialog *dialog,
     }
   else
     {
-      list = _gtk_printer_list_papers (printer);
+      list = gtk_printer_list_papers (printer);
       /* TODO: We should really sort this list so interesting size
         are at the top */
       for (l = list; l != NULL; l = l->next)
index 58ea80780b42c829b5858a619960345f528f3305..568e3bc0872e7f01f0624d23f54b085fd1970e42 100644 (file)
@@ -49,7 +49,6 @@ cairo_surface_t *    _gtk_printer_create_cairo_surface      (GtkPrinter
                                                             gdouble              width,
                                                             gdouble              height,
                                                             GIOChannel          *cache_io);
-GList  *             _gtk_printer_list_papers               (GtkPrinter          *printer);
 void                 _gtk_printer_get_hard_margins          (GtkPrinter          *printer,
                                                             gdouble             *top,
                                                             gdouble             *bottom,
index 60c06523e82f2712eb8dbabe057d6a25d7efdcc6..b8200b8c103f63b8217f8f22f574b6defbcbbe18 100644 (file)
@@ -784,11 +784,24 @@ _gtk_printer_create_cairo_surface (GtkPrinter       *printer,
                                                      width, height, cache_io);
 }
 
+/**
+ * gtk_printer_list_papers:
+ * @printer:
+ * 
+ * Lists all the page sizes @printer supports.
+ * 
+ * Return value: a newly allocated list of newly allocated #GtkPageSetup:s.
+ *
+ * Since: 2.12
+ */
 GList  *
-_gtk_printer_list_papers (GtkPrinter *printer)
+gtk_printer_list_papers (GtkPrinter *printer)
 {
-  GtkPrintBackendClass *backend_class = GTK_PRINT_BACKEND_GET_CLASS (printer->priv->backend);
+  GtkPrintBackendClass *backend_class;
+
+  g_return_val_if_fail (GTK_IS_PRINTER (printer), NULL);
 
+  backend_class = GTK_PRINT_BACKEND_GET_CLASS (printer->priv->backend);
   return backend_class->printer_list_papers (printer);
 }
 
index 7454f0e424787164417f8e3ee1d3da38635b0963..f3050f970ef6e3f9ebe2629596e9ae729b664115 100644 (file)
@@ -79,6 +79,7 @@ gboolean                 gtk_printer_is_virtual        (GtkPrinter      *printer
 gboolean                 gtk_printer_is_default        (GtkPrinter      *printer);
 gboolean                 gtk_printer_accepts_pdf       (GtkPrinter      *printer);
 gboolean                 gtk_printer_accepts_ps        (GtkPrinter      *printer);
+GList                   *gtk_printer_list_papers       (GtkPrinter      *printer);
 
 gint                     gtk_printer_compare           (GtkPrinter *a,
                                                        GtkPrinter *b);
@@ -90,7 +91,7 @@ void                     gtk_enumerate_printers        (GtkPrinterFunc   func,
                                                        gpointer         data,
                                                        GDestroyNotify   destroy,
                                                        gboolean         wait);
-                                                     
+
 G_END_DECLS
 
 #endif /* __GTK_PRINTER_H__ */